@echo off

REM    Openbravo POS is a point of sales application designed for touch screens.
REM    Copyright (C) 2008-2009 Openbravo, S.L.
REM    http://sourceforge.net/projects/openbravopos
REM
REM    This file is part of Openbravo POS.
REM
REM    Openbravo POS is free software: you can redistribute it and/or modify
REM    it under the terms of the GNU General Public License as published by
REM    the Free Software Foundation, either version 3 of the License, or
REM    (at your option) any later version.
REM
REM    Openbravo POS is distributed in the hope that it will be useful,
REM    but WITHOUT ANY WARRANTY; without even the implied warranty of
REM    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
REM    GNU General Public License for more details.
REM
REM    You should have received a copy of the GNU General Public License
REM    along with Openbravo POS.  If not, see <http://www.gnu.org/licenses/>.

DIRNAME=`dirname $0`

CP=$CP:$DIRNAME/lib/jasperreports-4.1.3.jar
CP=$CP:$DIRNAME/lib/jcommon-1.0.15.jar
CP=$CP:$DIRNAME/lib/jfreechart-1.0.12.jar
CP=$CP:$DIRNAME/lib/jdt-compiler-3.1.1.jar
CP=$CP:$DIRNAME/lib/commons-beanutils-1.7.jar
CP=$CP:$DIRNAME/lib/commons-digester-1.7.jar
CP=$CP:$DIRNAME/lib/iText-2.1.0.jar
CP=$CP:$DIRNAME/lib/poi-3.6-20091214.jar
CP=$CP:$DIRNAME/lib/barcode4j-light.jar
CP=$CP:$DIRNAME/lib/commons-codec-1.3.jar
CP=$CP:$DIRNAME/lib/velocity-1.5.jar
CP=$CP:$DIRNAME/lib/oro-2.0.8.jar
CP=$CP:$DIRNAME/lib/commons-collections-3.1.jar
CP=$CP:$DIRNAME/lib/commons-lang-2.1.jar
CP=$CP:$DIRNAME/lib/bsh-core-2.0b4.jar
CP=$CP:$DIRNAME/lib/RXTXcomm.jar
CP=$CP:$DIRNAME/lib/jpos1121.jar
CP=$CP:$DIRNAME/lib/swingx-1.6.jar
CP=$CP:$DIRNAME/lib/substance.jar
CP=$CP:$DIRNAME/lib/substance-swingx.jar

CP=$CP:$DIRNAME/lib/jspf.core-1.0.0.jar
CP=$CP:$DIRNAME/51danju-core-ui.jar
CP=$CP:$DIRNAME/51danju-payment.jar
CP=$CP:$DIRNAME/51danju-core.jar
CP=$CP:$DIRNAME/e-odbo.jar
CP=$CP:$DIRNAME/e-shard.jar
CP=$CP:$DIRNAME/51danju-drivce.jar
CP=$CP:$DIRNAME/51danju-erp.jar

java -cp $CP -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel -Djava.library.path=$DIRNAME$LIBRARYPATH -Ddirname.path=$DIRNAME/ cn.ekuma.epos.datalogic.update.Update230 "$@"
